﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace MvcDeveloper.Controllers
{
    public class HelpController : Controller
    {
        //
        // GET: /Help/

        public ActionResult Show(string topic)
        {
            var legacyUrl = String.Format("~/LegacyContent/{0}.html", topic);
            var physicalFileLocation = Server.MapPath(legacyUrl);

            var contents = System.IO.File.ReadAllText(physicalFileLocation);

            return Content(contents);
        }

    }
}
